package com.demo.controller;

import com.demo.pojo.Developer;
import com.demo.service.DeveloperService;
import lombok.extern.log4j.Log4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName DeveloperController
 * @Description TODO
 * @Author Windy
 * @Date 2022/9/7 14:47
 * @Version 1.0
 **/
@RestController
@RequestMapping("developer")
@Log4j

public class DeveloperController {

    @Autowired
    DeveloperService developerService;

    @RequestMapping("findAll")
    public List<Developer>  findAll(){
        List<Developer> all = developerService.findAll();
        return all;
    }
}
